import Vue from "vue";
import 'vant/lib/index.css';

import {
    Button,
    Tabbar,
    TabbarItem,
    NavBar,
    Search,
    Swipe,
    SwipeItem,
    Toast,
    Sticky,
    Grid,
    GridItem,
    Divider,
    Lazyload,
    List,
    PullRefresh,
    ImagePreview,
    Card,
    Sku,
    Dialog,
    Empty,
    SubmitBar,
    Checkbox, 
    CheckboxGroup,
    // Lazyload ,
    Cell, 
    CellGroup,
    SwipeCell ,
    Stepper ,
} from 'vant';
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant';
import { Image as VanImage } from 'vant';


Vue.use(Cell);
Vue.use(SwipeCell );
Vue.use(Stepper  );
Vue.use(CellGroup);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
// 全局注册
Vue.use(Dialog);

Vue.use(VanImage);
Vue.use(SubmitBar);
Vue.use(Empty);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
Vue.use(Sku);

Vue.use(Card,);
Vue.use(PullRefresh);
Vue.use(List);
Vue.use(ImagePreview);

// 注册时可以配置额外的选项
Vue.use(Lazyload, {
    lazyComponent: true,
});


Vue.use(Divider);
Vue.use(Lazyload);
Vue.use(Sticky);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Toast);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Search);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(NavBar);
Vue.use(Button);